All Questions
Tagged with scikit-learnmachine-learning-model
57 questions
0votes
0answers
117views
Need Expert Advice for using sklearn pipeline to create a composite estimator with multiple models & features. Column Transformer with Mixed Types
I am trying to use sklearn pipeline to create a composite estimator. Please check attached image for model blueprint. Can anyone help me understand how this can be done in python. Column Transformer ...
1vote
2answers
299views
Does it make sense to tune a model in scikit-learn and copy/paste the parameters into Rust's linfa?
I have a situation where my data can only be read from in a hosted Python environment, due to data security reasons. However, I am constrained to run ML models in a Rust environment due to work-...
1vote
1answer
15views
Classifier learn from model or data
I'm new in data science. I read context . It saids "The clf (for classifier) estimator instance is first fitted to the model; that is, it must learn from the model. ...." and example shows: <...
0votes
0answers
214views
SVM taking too much time to train
I'm trying to train my ML model with Svm.svc from sklearn, but it is taking so much time, it won't even train for once. This happens only when kernel function is used. Currently i selected 10 Features ...
1vote
1answer
907views
LLAMA MODEL WITHOUT USING HUGGINGFACE API
Is it possible to obtain the llama model alone as open source code without using the Huggingface API so that it can be hosted on our server?
0votes
1answer
94views
Clarifying some unclear Areas of model training, python, Machine Learning
The Problem I'm learning ML these days. I'm training a dataset with 10,000+ samples with 20+ features, the model I picked to train was "Logistic Regression", I have some problems in my mind, ...
1vote
0answers
211views
ValueError: Found input variables with inconsistent numbers of samples: [120, 30]
I practice XGBClassifier() to predict the target in iris dataset. here is the code: ...
0votes
1answer
125views
KMeans is not predicting the correct cluster
k-means clustering is done and created 5 optimal number of clusters. (Clustering is done unevenly). While using them in my model, the model is not choosing the exact cluster which has the exact data. ...
0votes
1answer
94views
I get 100% on my test set using random forest. What is wrong?
I am getting 100% accuracy on my test set when trained using random forest. Is there something wrong with my model? Code: ...
0votes
1answer
266views
how to evaluate the combination of tfidf and kmeans
For my nlp problem I'm using a combination of TFIDF and KMeans from the sklearn package. The tfidf gets the vectors and then I use Kmeans to cluster the texts based on the vectors. I have a few ...
1vote
1answer
72views
The Sklearn train_test_split function is create training data and test data which are not similar
I am working on loan default data and my model is not able to make accurate predictions on the test set because the the default percentage on the test set is very different from that of the training ...
0votes
1answer
604views
Converting String Data to Numeric data
I want to convert String data to Numeric data as the Decision tree is only accepting numeric data. When I had Binary String data like Ever_Married[Yes/No] I converted using the ...
1vote
0answers
41views
Random Forest Generating Bad Predictions: What might the issue be?
I'm using sklearn's RandomForestRegressor to try and model a relationship that involves three Feature variables (x1,x2,x3) and ...
1vote
0answers
43views
Best Strategy for predicting a Calendar with daily routines
I have a data-sheet with calendar entries of a single person which consists out of every-day routines such as sleeping, eating, working, body care, ... In total, there are about 40 different ...
0votes
1answer
1kviews
What Equation is model.coef_ Derived From? (SKLearn)
Fairly simple question, but something I've been unable to understand firmly by scouring the interwebs. After running a LR model using SKlearn, one of the key outputs is ...